package com.han.spring.core.di_way;

import java.beans.ConstructorProperties;

/**
* @author hanpeng
* @version 创建时间：2020年7月7日 上午10:40:55
* @ClassName 类名称
* @Description 类描述
*/
@SuppressWarnings("unused")
public class ExampleBean {
	private int years;
	private String ultimateAnswer;
	private int age;
	
	@ConstructorProperties(value= {"year", "ultimateAnswer"})
    public ExampleBean(int years, String ultimateAnswer) {
        this.years = years;
        this.ultimateAnswer = ultimateAnswer;
    }
	
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	@Override
	public String toString() {
		return "ExampleBean [years=" + years + ", ultimateAnswer=" + ultimateAnswer + ", age=" + age + "]";
	}

	
}
